<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-if&v-else&v-show</title>
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>v-if&v-else&v-show</h1>
    <hr>
    <!-- v-if 是直接dom元素消失了
        v-show 是display ：none了 还有dom元素存在
    -->
    <div id="app">
        <div v-if="isLogin">你好：{{message}}</div>
        <!-- <div v-show="isLogin">你好：{{message}}</div> -->
        
        <div v-else>请登录后操作</div>
    </div>
</body>
<script>
    var app = new Vue({
        el:"#app",
        data:{ 
            message:"李锋！！！",
            isLogin:false
        }
    })
</script>
</html>